Don't use travis-cargo to upload docs
authorAlex Crichton <alex@alexcrichton.com>
Tue, 8 Nov 2016 15:07:49 +0000 (07:07 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 8 Nov 2016 15:07:49 +0000 (07:07 -0800)
.travis.yml

index be844a9c8a36f9c0941304d7096a0265af1f38ae..2bbcbe98a133ee8a41ef951c0d7a4c3dac61fd8f 100644 (file)
@@ -98,7 +98,6 @@ matrix:
     - rust: stable
 
 before_script:
-  - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
   - curl https://static.rust-lang.org/rustup.sh |
     sh -s -- --add-target=$TARGET --disable-sudo -y --prefix=`rustc --print sysroot`
   - if [ ! -z "$ALT" ]; then
@@ -111,8 +110,13 @@ script:
     else
         src/ci/docker/run.sh $IMAGE $TARGET;
     fi
-after_success:
-  - travis-cargo --only nightly doc-upload
+after_success: |
+  [ $TRAVIS_BRANCH = master ] &&
+  [ $TRAVIS_PULL_REQUEST = false ] &&
+  [ $(uname -s) = Linux ] &&
+  pip install ghp-import --user $USER &&
+  $HOME/.local/bin/ghp-import -n target/doc &&
+  git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
 
 env:
   global: